From e5e2ccbed42b2abc3f3b1d592a2c0266df448372 Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Wed, 24 Jan 2007 13:58:06 +0000 Subject: [PATCH] [XEND] Make sure UUID in state store are not stored as unicode objects. Signed-off-by: Alastair Tse --- tools/python/xen/xend/XendStateStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendStateStore.py b/tools/python/xen/xend/XendStateStore.py index 8be634058f..7776415ee3 100644 --- a/tools/python/xen/xend/XendStateStore.py +++ b/tools/python/xen/xend/XendStateStore.py @@ -107,7 +107,7 @@ class XendStateStore: if child.nodeType != Node.ELEMENT_NODE: continue # skip non element nodes - uuid = child.getAttribute('uuid') + uuid = child.getAttribute('uuid').encode('utf8') cls_dict = {} for val_elem in child.childNodes: if val_elem.nodeType != Node.ELEMENT_NODE: -- 2.30.2